import axios from 'axios'

const login = async (id, apiKey, secretKey) => {
	try {
		const response = await axios.patch(
			process.env.url_server + '/api/user/login',
			{
				telegramId: id,
				apiKey: apiKey,
				secretKey: secretKey,
			}
		)
		return response.data
	} catch (err) {
		alert(err)
	}
}

export default {
	login,
}
